Add request for fd iteration without /proc#43
Add request for fd iteration without /proc#43daandemeyer wants to merge 1 commit intouapi-group:mainfrom
Conversation
behrmann
left a comment
There was a problem hiding this comment.
Starting at line 644 is the section of finished items, so it needs to move above that line.
| ### A way to iterate process file descriptors without /proc | ||
|
|
||
| [x] A way to iterate process file descriptors without needing |
There was a problem hiding this comment.
| ### A way to iterate process file descriptors without /proc | |
| [x] A way to iterate process file descriptors without needing | |
| ### A way to iterate over process file descriptors without /proc | |
| A way to iterate over process file descriptors without needing |
|
Wouldn't it be much nicer if we could call This is already possible by calling fork()+CLONE_NEWUSER+CLONE_NEWMOUNT and then calling So, maybe instead of providing duplicate APIs that /proc already has, we can instead ensure that access to at least (I am no huge fan of file-system based APIs like /proc, but I mean... it is there... we have it, so we can just make use of it) |
|
That would indeed do the trick, and in my case I already have a user and mountns, so let me close this. |
|
Nooooo, I need someone to push this forward! :'( |
Can't you merely |
Yes, I can, but then I cannot switch back to my original user-namespace. Even if I retain a namespace-fd to the original user-ns, a So yes, I can get access to proc by dropping namespaces, but it would lock you out from joining the previous user-namespace. By doing this in a fork, you can pass back the FD but retain your namespaces in the parent process. |
No description provided.